<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
 <table width="100%" border="1" cellpadding="0" cellspacing="0">
 <td class="td_l_c">编号</td>
 <td class="td_l_l">客户名称</td>
 <?php if (isset($config['type'])){?>
 <td class="td_l_c">跟单类型</td>
 <?php }?>
 <?php if (isset($config['state'])){?>
 <td class="td_l_c">跟单进度</td>
 <?php }?>
 <?php if (isset($config['linkman'])){?>
 <td class="td_l_c">跟单对象</td>
 <?php }?>
 <?php if (isset($config['nexttime'])){?>
 <td class="td_l_c">下次联系</td>
 <?php }?>
 <?php if (isset($config['content'])){?>
 <td class="td_l_l">详细内容</td>
 <?php }?>
 <?php if (isset($config['adduser'])){?>
 <td class="td_l_c">业务员</td>
 <?php }?>
 <?php if (isset($config['addtime'])){?>
 <td class="td_l_c">录入时间</td>
 <?php }?>
 
 </tr>
 
 <?php foreach($list as $arr=>$row) {?>
 <tr class="tr">
<td class="td_l_c"><?php echo $row['id']?></td>
 <td class="td_l_l"><?php echo $row['customername']?></td>
 <?php if (isset($config['type'])){?>
 <td class="td_l_c"><?php echo $row['type']?></td>
 <?php }?>
 <?php if (isset($config['state'])){?>
 <td class="td_l_c"><?php echo $row['state']?></td>
 <?php }?>
 <?php if (isset($config['linkman'])){?>
 <td class="td_l_c"><?php echo $row['linkman']?></td>
 <?php }?>
 <?php if (isset($config['nexttime'])){?>
 <td class="td_l_c"><?php echo $row['nexttime']?></td>
 <?php }?>
 <?php if (isset($config['content'])){?>
 <td class="td_l_l" style="line-height:25px;"><?php echo $row['content']?></td>
 <?php }?>
 <?php if (isset($config['adduser'])){?>
 <td class="td_l_c"><?php echo $row['adduser']?></td>
 <?php }?>
 <?php if (isset($config['addtime'])){?>
 <td class="td_l_c"><?php echo $row['adddate']?></td>
 <?php }?>
 </tr>
 
 <?php }?> 
 </table>
 
  